import { GameObjectComponent } from "../../../../ModelView/Client/Demo/Unit/GameObjectComponent";
import { ObjectSystemAttribute, FriendOf } from "../../../../../Decorator/Decorator";
import { AwakeSystem } from "../../../../../Core/Module/EventSystem/IAwakeSystem";
import { DestroySystem } from "../../../../../Core/Module/EventSystem/IDestroySystem";

@FriendOf(GameObjectComponent)
@ObjectSystemAttribute()
export class GameObjectComponentAwakeSystem extends AwakeSystem<GameObjectComponent> {

    Awake(self: GameObjectComponent): void {

    }

}

@FriendOf(GameObjectComponent)
@ObjectSystemAttribute()
export class GameObjectComponentDestroySystem extends DestroySystem<GameObjectComponent> {

    Destroy(self: GameObjectComponent): void {
        self.GameObject.destroy();
    }

}